package com.nanjia.boot.myflow.outboundorderdetail.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 出库明细表单对象
 *
 * @author 周洋
 * @since 2025-08-22 18:01
 */
@Getter
@Setter
@Schema(description = "出库明细表单对象")
public class OutboundOrderDetailForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

//    @NotNull(message = "不能为空")
    private Long id;

    @Schema(description = "出库单ID")
    @NotNull(message = "出库单ID不能为空")
    private Long outboundOrderId;

    @Schema(description = "批次ID")
    @NotNull(message = "批次ID不能为空")
    private Long batchId;

    @Schema(description = "出库数量")
    @NotNull(message = "出库数量不能为空")
    private Integer quantity;

    @Schema(description = "出库库位")
//    @NotBlank(message = "出库库位不能为空")
    @Size(max = 50, message = "出库库位长度不能超过50个字符")
    private String storageLocation;

    private Long skuId;
    private Long orderId;

    private Long orderItemId;

    private String ems;
    private String emsnumber;

    private String status;
}
